package com.hyk.learning.registry;

import com.hyk.learning.common.extension.SPI;

import java.net.InetSocketAddress;

/**
 * @className: ServiceRegistry
 * @author: hyk199710
 * @description: 服务注册
 * @date: 2024/5/10 22:10
 */
@SPI
public interface ServiceRegistry {

    /**
     * @param rpcServiceName:    完整的服务名称（class name+group+version）
     * @param inetSocketAddress: 远程服务地址
     * @return void
     * @author 10091
     * @description 注册服务到注册中心
     * @date 2024/5/19 14:41
     */
    void registerService(String rpcServiceName, InetSocketAddress inetSocketAddress, boolean canRetry);
}
